package com.lczyfy.idcp.common.utils;

public enum ResponseBoolean {
    SUCCESS(true, "SUCCESS"),
    ERROR(false, "ERROR");
//    NEED_LOGIN(10, "NEED_LOGIN"),
//    ILLEGAL_ARGUMENT(2, "ILLEGAL_ARGUMENT");

    private final boolean code;
    private final String desc;

    ResponseBoolean(boolean code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public boolean getCode(){
        return this.code;
    }

    public String getDesc(){
        return this.desc;
    }
}